<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>本地存储</title>
</head>
<body>


<a href="6.storage-2.html">第二页</a>
</body>
<script>
    localStorage.setItem("username","test"); // 把数据放到本地文件中

</script>

</html>